<template>
    <BaseContainer>
      <el-tabs v-model="useTemplate" class="demo-tabs">
          <el-tab-pane label="非智能报表" name="noIntelligent"></el-tab-pane>
          <el-tab-pane label="智能报表" name="Intelligent"></el-tab-pane>
      </el-tabs>
      <!-- <el-tabs v-model="activeName" class="demo-tabs" @tab-click="handleClick">
          <el-tab-pane label="待处理的任务" v-if="isAuth('ga_waitHandle')" name="waitHandleTask"></el-tab-pane>
          <el-tab-pane label="我发布的子任务" name="myDispatchTask"></el-tab-pane>
      </el-tabs> -->
      <!-- 非智能待处理的任务 -->
      <WaitHandleTask v-if="activeName == 'waitHandleTask'&&useTemplate=='noIntelligent'"></WaitHandleTask>
      <!-- 非智能我发布的子任务 -->
      <!-- <MyDispatchTask v-if="activeName == 'myDispatchTask'&&useTemplate=='noIntelligent'"></MyDispatchTask> -->
      <!-- 智能报表待处理的任务 -->
      <FrameMain v-if="activeName == 'waitHandleTask'&&useTemplate=='Intelligent'" :params="{fromSource:8,type:8}" src="/taskFille"></FrameMain>
      <!-- 智能报表我发布的子任务 -->
      <!-- <FrameMain v-if="activeName == 'myDispatchTask'&&useTemplate=='Intelligent'" :params="{fromSource:8}" src="/taskDown"></FrameMain> -->
    </BaseContainer>
  </template>
  
  <script setup lang="ts">
  import { ref, reactive, toRefs, onMounted} from 'vue'
  import MyDispatchTask from './myDispatchTask/index.vue'
  import WaitHandleTask from './waitHandleTask/index.vue'
  import {isAuth} from '@/utils/util'
  import FrameMain from '@/views/aplid/FrameMain/index.vue'

  let activeName = ref("waitHandleTask")
  const handleClick = ():void => {
  
  }
  
  // 根据权限去判断当前激活值
const judgeCurrentActive = () =>{
    if(!isAuth('ga_waitHandle')){
      activeName.value = 'myDispatchTask'
    }
}
judgeCurrentActive()

let useTemplate = ref("noIntelligent")

  </script>
  <style scoped lang="scss">
  </style>